<?php

/**
 +----------------------------------------------+
 * PHP Version 5.2.10                           *
 +----------------------------------------------+
 * 功能说明：处理[swf].*[/swf]的类
 +----------------------------------------------+
 * Author    ：九九                             *
 * QQ        ：405494897                        *
 * Email     ：xjiujiu@foxmail.com              *
 * Copyright ：2010/7/23                        *
 +----------------------------------------------+ 
**/

/**
* @name  swfUBBCode class
* 
*/
class swfUBBCode extends UBBCode{
    public function __construct($content,$value,$UBBCode,$regExp){
        parent::__construct(&$content,$value,$UBBCode,$regExp); 
        $this->htmlCode     = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24\" width=\"100\" height=\"100\">
       	  	    <param name=\"movie\" value=\"\\1\" />
       	  	    <param name=\"quality\" value=\"high\" />
       	  	    <param name=\"menu\" value=\"false\" />
       	  	    <!--[if !IE]> <-->
       	  	    <object data=\"\\1\" width=\"100\" height=\"100\" type=\"application/x-shockwave-flash\">
       	  	      <param name=\"quality\" value=\"high\" />
       	  	      <param name=\"menu\" value=\"false\" />
       	  	      <param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" />
       	  	      FAIL (the browser should render some flash content, not this).
   	  	        </object>
       	  	    <!--> <![endif]-->
   	  	      </object>";
    }
    public function replaceUBBCode(){
        if(($this->content = preg_replace($this->regExp,$this->htmlCode,$this->content,1)) == true){
            return true;
        }else{
            return false;
        }        
    }
}


?>